import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore(
  'counter',
  () => {
    const userInfo = ref('')

    // function setUserInfo(data) {
    // 	userInfo.value = data
    // }
    function clearUserInfo() {
      userInfo.value = ''
    }
    return {
      userInfo,
      clearUserInfo,
    }
  },
  {
    persist: true,
  },
)
